<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
  <meta charset="UTF-8">
  <title>帮宝适-特级棉柔拉拉裤</title>
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
  <meta name="format-detection" content="telephone=no">
  <meta name="format-detection" content="email=no">
  <style>
    body{margin:0;padding:0;background:url("img/bg.jpg") no-repeat top center/100% auto;min-height:29.5rem;}
    .container{padding:3.2rem 0.75rem 1.25rem 0.75rem;}

    .morelink{position:absolute;top:1.2rem;right:2.2rem;font-size:0.75rem;color:#ccb05b;}
    .linelink{float:right;margin-right:1.6rem;margin-top:0.6rem;font-size:0.75rem;color:#ccb05b;}
    .user-box{position:absolute;top:3.3rem;left:2.3rem;}
    .u-head{display:inline-block;width:1.5rem;height:1.5rem;border-radius:50%;border:1px solid #a0137a;vertical-align:-0.55rem;}
    .u-name{font-size:0.7rem;color:#2ebcbe;}

    .con-info{position:absolute;width:100%;left:0;top:10.1rem;text-align:center;}
    .con-p{font-size:0.7rem;line-height:1.1;color:#2ebcbe;margin:0;}

    .box{position:relative;padding-top:68%;}
    .box.success{background:url("img/success.png") no-repeat center/contain;}
    .box.err1{background:url("img/err1.png") no-repeat center/contain;}
    .box.err2{background:url("img/err2.png") no-repeat center/contain;}
    .box.err3{background:url("img/err3.png") no-repeat center/contain;}
    .box.err4{background:url("img/err4.png") no-repeat center/contain;}
  </style>
  <script>
    (function (size) {
      var docEl = document.documentElement,
          resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
          recalc = function () {
            docEl.style.fontSize = 20 * (docEl.clientWidth / size) + 'px';
          };
      window.addEventListener(resizeEvt, recalc, false);
      recalc();
    })(375);
  </script>
</head>
<body>
  <section class="container">
    <a href="" class="morelink">更多产品详情</a>

    <!-- 成功 -->
    <div class="box success">
      <div class="user-box">
        <div class="u-head" style="background: url(img/success.png) no-repeat center/cover;"></div>
        <span class="u-name">问问水电费</span>
      </div>
      <div class="con-info">
        <p class="con-p">领取时间：2016-6-24 13:02:15</p>
        <p class="con-p">领奖编号: 000041</p>
      </div>
    </div>

    <!-- 已经领取过了 -->
    <div class="box err1" hidden>
      <div class="con-info">
        <p class="con-p">领取时间：2016-6-24 13:02:15</p>
      </div>
    </div>
    <!-- 此二维码已经被人使用过了 -->
    <div class="box err2" hidden></div>
    <!-- 请使用微信扫描 -->
    <div class="box err3" hidden></div>
    <!-- 请允许使用位置信息 -->
    <div class="box err4" hidden></div>

    <a href="tel:4006681545" class="linelink">联系客服</a>
  </section>

  <script>
    window.onload = function () {
      var _h = document.body.scrollHeight;
      if(_h > document.body.offsetHeight){
        document.body.style.backgroundSize = 'cover';
        document.body.style.height = _h +'px';
      }
    }
  </script>
</body>
</html>
